package com.wavercaz.freeforum.services.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wavercaz.freeforum.mappers.UserInfoMapper;
import com.wavercaz.freeforum.pojo.CommonSearchParam;
import com.wavercaz.freeforum.pojo.UserInfo;
import com.wavercaz.freeforum.pojo.vo.UserInfoVo;
import com.wavercaz.freeforum.services.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper,UserInfo> implements UserInfoService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public IPage<UserInfoVo> getUserInfoVoList(CommonSearchParam commonSearchParam, Page<UserInfoVo> page) {
        return userInfoMapper.getUserInfoVoList(commonSearchParam, page);
    }
}
